Class HttpSocketServlet.ServletSocket
java.lang.Object
com.aoapps.messaging.base.AbstractSocket
com.aoapps.messaging.http.servlet.HttpSocketServlet.ServletSocket
- All Implemented Interfaces:
Socket
,Closeable
,AutoCloseable
- Enclosing class:
HttpSocketServlet
Servlet socket implementation.
-
Method Summary
Modifier and TypeMethodDescriptionprotected Future
<?> protected Future
<?> callOnMessages
(List<? extends Message> messages) void
close()
All requests for this socket must use the same server name.protected void
sendMessagesImpl
(Collection<? extends Message> messages) protected void
Methods inherited from class com.aoapps.messaging.base.AbstractSocket
addSocketListener, getCloseTime, getConnectRemoteSocketAddress, getConnectTime, getId, getRemoteSocketAddress, getSocketContext, isClosed, removeSocketListener, sendMessage, sendMessages, setRemoteSocketAddress, start, toString
-
Method Details
-
getServerName
All requests for this socket must use the same server name. -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceSocket
- Overrides:
close
in classAbstractSocket
- Throws:
IOException
-
getProtocol
- Specified by:
getProtocol
in interfaceSocket
- Specified by:
getProtocol
in classAbstractSocket
-
callOnMessages
- Overrides:
callOnMessages
in classAbstractSocket
- Throws:
IllegalStateException
-
callOnError
- Overrides:
callOnError
in classAbstractSocket
- Throws:
IllegalStateException
-
startImpl
- Specified by:
startImpl
in classAbstractSocket
-
sendMessagesImpl
- Specified by:
sendMessagesImpl
in classAbstractSocket
-