Class GrpcErrorStatsServiceStub
java.lang.Object
com.google.devtools.clouderrorreporting.v1beta1.stub.ErrorStatsServiceStub
com.google.devtools.clouderrorreporting.v1beta1.stub.GrpcErrorStatsServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@BetaApi
@Generated("by gapic-generator-java")
public class GrpcErrorStatsServiceStub
extends ErrorStatsServiceStub
gRPC stub implementation for the ErrorStatsService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcErrorStatsServiceStub(ErrorStatsServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcErrorStatsServiceStub, using the given settings.protectedGrpcErrorStatsServiceStub(ErrorStatsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcErrorStatsServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcErrorStatsServiceStubcreate(ClientContext clientContext) static final GrpcErrorStatsServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcErrorStatsServiceStubcreate(ErrorStatsServiceStubSettings settings) booleanbooleanvoidshutdown()void
-
Constructor Details
-
GrpcErrorStatsServiceStub
protected GrpcErrorStatsServiceStub(ErrorStatsServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcErrorStatsServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
GrpcErrorStatsServiceStub
protected GrpcErrorStatsServiceStub(ErrorStatsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcErrorStatsServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
-
Method Details
-
create
public static final GrpcErrorStatsServiceStub create(ErrorStatsServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final GrpcErrorStatsServiceStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final GrpcErrorStatsServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
-
listGroupStatsCallable
- Overrides:
listGroupStatsCallablein classErrorStatsServiceStub
-
listGroupStatsPagedCallable
public UnaryCallable<ListGroupStatsRequest,ErrorStatsServiceClient.ListGroupStatsPagedResponse> listGroupStatsPagedCallable()- Overrides:
listGroupStatsPagedCallablein classErrorStatsServiceStub
-
listEventsCallable
- Overrides:
listEventsCallablein classErrorStatsServiceStub
-
listEventsPagedCallable
public UnaryCallable<ListEventsRequest,ErrorStatsServiceClient.ListEventsPagedResponse> listEventsPagedCallable()- Overrides:
listEventsPagedCallablein classErrorStatsServiceStub
-
deleteEventsCallable
- Overrides:
deleteEventsCallablein classErrorStatsServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classErrorStatsServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-