|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.qos.logback.core.net.DefaultSocketConnector
public class DefaultSocketConnector
Default implementation of SocketConnector.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface ch.qos.logback.core.net.SocketConnector |
|---|
SocketConnector.ExceptionHandler |
| Constructor Summary | |
|---|---|
DefaultSocketConnector(InetAddress address,
int port,
DelayStrategy delayStrategy)
Constructs a new connector. |
|
DefaultSocketConnector(InetAddress address,
int port,
long initialDelay,
long retryDelay)
Constructs a new connector. |
|
| Method Summary | |
|---|---|
Socket |
call()
Loops until the desired connection is established and returns the resulting connector. |
void |
setExceptionHandler(SocketConnector.ExceptionHandler exceptionHandler)
Sets the connector's exception handler. |
void |
setSocketFactory(SocketFactory socketFactory)
Sets the connector's socket factory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultSocketConnector(InetAddress address,
int port,
long initialDelay,
long retryDelay)
address - address of remote listenerport - port of remote listenerinitialDelay - delay before initial connection attemptretryDelay - delay after failed connection attempt
public DefaultSocketConnector(InetAddress address,
int port,
DelayStrategy delayStrategy)
address - address of remote listenerport - port of remote listenerdelayStrategy - strategy for choosing the delay to impose before
each connection attempt| Method Detail |
|---|
public Socket call()
throws InterruptedException
call in interface SocketConnectorcall in interface Callable<Socket>InterruptedExceptionpublic void setExceptionHandler(SocketConnector.ExceptionHandler exceptionHandler)
The handler must be set before the SocketConnector.call() method is invoked.
setExceptionHandler in interface SocketConnectorexceptionHandler - the handler to setpublic void setSocketFactory(SocketFactory socketFactory)
If no factory is configured that connector will use the platform's default factory.
setSocketFactory in interface SocketConnectorsocketFactory - the factory to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||