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 ProtocolLayer
s. This interface represents the general
contract of all layers in the stack.- Since:
- 3.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Interface to indicate that this layer receives data from lower layers.static interface
Interface to indicate that this layer sends data to lower layers. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ByteBuffer
A handy constant to use for no-op send/receive calls. -
Method Summary
Modifier and TypeMethodDescriptionvoid
init
(ProtocolStack<?>.Ptr ptr) Initializes the layer with itsProtocolStack.Ptr
.void
start()
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.
-