FabricTransportServiceRemotingListener Class
- java.
lang. Object - CommunicationListener
- ServiceRemotingListener
- microsoft.
servicefabric. services. remoting. fabrictransport. runtime. FabricTransportServiceRemotingListener
- microsoft.
public class FabricTransportServiceRemotingListener implements ServiceRemotingListener
An ServiceRemotingListener that uses fabric TCP transport to provide interface remoting for stateless and stateful services.
Constructor Summary
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
abort()
This method causes the communication listener to close. Close is a terminal state and this method causes the transition to close ungracefully. Any outstanding operations (including close) should be canceled when this method is called. |
CompletableFuture<?> |
closeAsync(CancellationToken cancellationToken)
This method causes the communication listener to close. Close is a terminal state and this method allows the communication listener to transition to this state in a graceful manner. |
CompletableFuture<String> |
openAsync(CancellationToken cancellationToken)
This method causes the communication listener to be opened. Once the Open completes, the communication listener becomes usable - accepts and sends messages. |
Constructor Details
FabricTransportServiceRemotingListener
public FabricTransportServiceRemotingListener(ServiceContext serviceContext, Service serviceImplementation)
Constructs a fabric transport based service remoting listener.
Parameters:
FabricTransportServiceRemotingListener
public FabricTransportServiceRemotingListener(ServiceContext serviceContext, Service serviceImplementation, FabricTransportRemotingListenerSettings listenerSettings)
Constructs a fabric transport based service remoting listener that uses the specified settings.
Parameters:
FabricTransportServiceRemotingListener
public FabricTransportServiceRemotingListener(ServiceContext serviceContext, Service serviceImplementation, String listenerSettingsConfigSectionName)
Constructs a fabric Transport based service remoting listener.
Parameters:
FabricTransportServiceRemotingListener
public FabricTransportServiceRemotingListener(ServiceContext serviceContext, ServiceRemotingMessageHandler messageHandler)
Constructs a fabric transport based service remoting listener.
Parameters:
FabricTransportServiceRemotingListener
public FabricTransportServiceRemotingListener(ServiceContext serviceContext, ServiceRemotingMessageHandler messageHandler, FabricTransportRemotingListenerSettings listenerSettings)
Constructs a fabric Transport based service remoting listener.
Parameters:
FabricTransportServiceRemotingListener
public FabricTransportServiceRemotingListener(ServiceContext serviceContext, ServiceRemotingMessageHandler messageHandler, String listenerSettingsConfigSectionName)
Constructs a fabric transport based service remoting listener.
Parameters:
Method Details
abort
public void abort()
This method causes the communication listener to close. Close is a terminal state and this method causes the transition to close ungracefully. Any outstanding operations (including close) should be canceled when this method is called.
Overrides:
FabricTransportServiceRemotingListener.abort()closeAsync
public CompletableFuture> closeAsync(CancellationToken cancellationToken)
This method causes the communication listener to close. Close is a terminal state and this method allows the communication listener to transition to this state in a graceful manner.
Overrides:
FabricTransportServiceRemotingListener.closeAsync(CancellationToken cancellationToken)Parameters:
CancellationToken object to indicate the cancellation status of the operation.
Returns:
openAsync
public CompletableFuture
This method causes the communication listener to be opened. Once the Open completes, the communication listener becomes usable - accepts and sends messages.
Overrides:
FabricTransportServiceRemotingListener.openAsync(CancellationToken cancellationToken)Parameters:
CancellationToken object to indicate the cancellation status of the operation.
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for