Class DisconnectMessage
- java.lang.Object
-
- de.gebit.integrity.remoting.transport.messages.AbstractMessage
-
- de.gebit.integrity.remoting.transport.messages.DisconnectMessage
-
- All Implemented Interfaces:
java.io.Serializable
public class DisconnectMessage extends AbstractMessage
This message is sent back and forth between two endpoints when one of them wants to close the connection. Its purpose is to prevent any actual message bytes from getting lost in the close process, which can happen if a socket is closed while there are still bytes to be written in the buffer (a common Java socket problem).- Author:
- Rene Schneider - initial API and implementation
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DisconnectMessage()
The no-arg constructor, primarily used for serialization.DisconnectMessage(boolean anIsConfirmation)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isConfirmation()
-