Interface ConnectorAttachment
-
- All Known Implementing Classes:
DefaultConnectorAttachment
public interface ConnectorAttachment
Represents a connector attachment. This class is used for a "fluent" API, so that you can modify the transformer of the connector after attaching it to a gateway.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GatewaySubscription
finishAttaching()
Finish subscribing this connector.io.gridgo.connector.Connector
getConnector()
MessageTransformer
getIncomingTransformer()
MessageTransformer
getOutgoingTransformer()
ConnectorAttachment
transformIncomingWith(MessageTransformer transformer)
Attach a MessageTransformer to this connector when transform incoming messages.ConnectorAttachment
transformOutgoingWith(MessageTransformer transformer)
Attach a MessageTransformer to this connector when transform outgoing messages.
-
-
-
Method Detail
-
transformIncomingWith
ConnectorAttachment transformIncomingWith(MessageTransformer transformer)
Attach a MessageTransformer to this connector when transform incoming messages.- Parameters:
transformer
- the transformer- Returns:
- this ConnectorSubscription
-
transformOutgoingWith
ConnectorAttachment transformOutgoingWith(MessageTransformer transformer)
Attach a MessageTransformer to this connector when transform outgoing messages.- Parameters:
transformer
- the transformer- Returns:
- this ConnectorSubscription
-
finishAttaching
GatewaySubscription finishAttaching()
Finish subscribing this connector.- Returns:
- the GatewaySubscription which this connector is attached
-
getIncomingTransformer
MessageTransformer getIncomingTransformer()
-
getOutgoingTransformer
MessageTransformer getOutgoingTransformer()
-
getConnector
io.gridgo.connector.Connector getConnector()
-
-