Package org.jenkinsci.remoting.protocol
Interface ProtocolLayer
- All Known Subinterfaces:
ProtocolLayer.Recv,ProtocolLayer.Send
- All Known Implementing Classes:
AckFilterLayer,AgentProtocolClientFilterLayer,ApplicationLayer,BIONetworkLayer,ChannelApplicationLayer,ConnectionHeadersFilterLayer,FilterLayer,NetworkLayer,NIONetworkLayer,SSLEngineFilterLayer
public interface ProtocolLayer
A network
ProtocolStack consists of a number of ProtocolLayers. This interface represents the general
contract of all layers in the stack.- Since:
- 3.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInterface to indicate that this layer receives data from lower layers.static interfaceInterface to indicate that this layer sends data to lower layers. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ByteBufferA handy constant to use for no-op send/receive calls. -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(ProtocolStack<?>.Ptr ptr) Initializes the layer with itsProtocolStack.Ptr.voidstart()Starts this layer.
-
Field Details
-
EMPTY_BUFFER
A handy constant to use for no-op send/receive calls.
-
-
Method Details
-
init
Initializes the layer with itsProtocolStack.Ptr. All lower layers in the stack will be initialized before a call to this method. All layers in a stack will be initialized before a call tostart().- Parameters:
ptr- the position of this layer in the stack.- Throws:
IOException- if something goes wrong.
-
start
Starts this layer. All layers in the stack will be initialized before a call to this method. All lower layers in the stack will have been started before this layer is started.- Throws:
IOException- if something goes wrong.
-