java.lang.Object
swim.api.service.AbstractService
- All Implemented Interfaces:
Service
,IpInterface
,Log
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbindTcp
(InetSocketAddress localAddress, IpService service, IpSettings ipSettings) bindTls
(InetSocketAddress localAddress, IpService service, IpSettings ipSettings) void
close()
connectTcp
(InetSocketAddress remoteAddress, IpSocket socket, IpSettings ipSettings) connectTls
(InetSocketAddress remoteAddress, IpSocket socket, IpSettings ipSettings) void
Logs a debug-level message.void
didClose()
void
void
didStart()
void
didStop()
void
Logs an error-level message.void
Logs an fail-level message.void
Logs an info-level message.schedule()
stage()
void
Logs a trace-level message.void
Logs a warn-level message.void
void
void
willStop()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface swim.io.IpInterface
bindTcp, bindTcp, bindTcp, bindTls, bindTls, bindTls, connectTcp, connectTcp, connectTcp, connectTcp, connectTcp, connectTcp, connectTcp, connectTls, connectTls, connectTls, connectTls, connectTls, connectTls, connectTls
-
Field Details
-
context
-
-
Constructor Details
-
AbstractService
-
AbstractService
public AbstractService()
-
-
Method Details
-
serviceContext
- Specified by:
serviceContext
in interfaceService
-
schedule
-
stage
-
ipSettings
- Specified by:
ipSettings
in interfaceIpInterface
-
bindTcp
public IpServiceRef bindTcp(InetSocketAddress localAddress, IpService service, IpSettings ipSettings) - Specified by:
bindTcp
in interfaceIpInterface
-
bindTls
public IpServiceRef bindTls(InetSocketAddress localAddress, IpService service, IpSettings ipSettings) - Specified by:
bindTls
in interfaceIpInterface
-
connectTcp
public IpSocketRef connectTcp(InetSocketAddress remoteAddress, IpSocket socket, IpSettings ipSettings) - Specified by:
connectTcp
in interfaceIpInterface
-
connectTls
public IpSocketRef connectTls(InetSocketAddress remoteAddress, IpSocket socket, IpSettings ipSettings) - Specified by:
connectTls
in interfaceIpInterface
-
trace
Description copied from interface:Log
Logs a trace-level message. -
debug
Description copied from interface:Log
Logs a debug-level message. -
info
Description copied from interface:Log
Logs an info-level message. -
warn
Description copied from interface:Log
Logs a warn-level message. -
error
Description copied from interface:Log
Logs an error-level message. -
fail
Description copied from interface:Log
Logs an fail-level message. -
close
public void close() -
willStart
public void willStart() -
didStart
public void didStart() -
willStop
public void willStop() -
didStop
public void didStop() -
willClose
public void willClose() -
didClose
public void didClose() -
didFail
-