public class ConnectionLoggerImpl extends java.lang.Object implements ConnectionLogger
Modifier and Type | Class and Description |
---|---|
static interface |
ConnectionLoggerImpl.LogLifecycleListener
Additional interface logger sends its output to.
|
ConnectionLogger.ConnectionCloser, ConnectionLogger.Factory, ConnectionLogger.StreamListener
Constructor and Description |
---|
ConnectionLoggerImpl(java.io.Writer logWriter,
ConnectionLoggerImpl.LogLifecycleListener lifecycleListener) |
Modifier and Type | Method and Description |
---|---|
ITerminate |
getConnectionTerminate() |
ConnectionLogger.StreamListener |
getIncomingStreamListener() |
ConnectionLogger.StreamListener |
getOutgoingStreamListener() |
void |
handleEos()
Notifies logger that EOS has been received from remote.
|
void |
setConnectionCloser(ConnectionLogger.ConnectionCloser connectionCloser)
Connection may allow the logger to close it.
|
void |
start()
Notifies logger that actual transmission is starting.
|
public ConnectionLoggerImpl(java.io.Writer logWriter, ConnectionLoggerImpl.LogLifecycleListener lifecycleListener)
public ConnectionLogger.StreamListener getIncomingStreamListener()
getIncomingStreamListener
in interface ConnectionLogger
public ConnectionLogger.StreamListener getOutgoingStreamListener()
getOutgoingStreamListener
in interface ConnectionLogger
public void start()
ConnectionLogger
ConnectionLogger.handleEos()
is guaranteed to be called.start
in interface ConnectionLogger
public void handleEos()
ConnectionLogger
handleEos
in interface ConnectionLogger
public ITerminate getConnectionTerminate()
public void setConnectionCloser(ConnectionLogger.ConnectionCloser connectionCloser)
ConnectionLogger
setConnectionCloser
in interface ConnectionLogger
Copyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.