public final class TcpEventProxy extends Object implements EventProxy
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PORT
Constant
DEFAULT_PORT=5817 |
static int |
DEFAULT_TIMEOUT
Constant
DEFAULT_TIMEOUT=2000 |
Constructor and Description |
---|
TcpEventProxy()
Constructor for TcpEventProxy.
|
TcpEventProxy(InetSocketAddress address)
Constructor for TcpEventProxy.
|
TcpEventProxy(InetSocketAddress address,
int timeout)
Constructor for TcpEventProxy.
|
public static final int DEFAULT_PORT
DEFAULT_PORT=5817
public static final int DEFAULT_TIMEOUT
DEFAULT_TIMEOUT=2000
public TcpEventProxy() throws UnknownHostException
Constructor for TcpEventProxy.
UnknownHostException
- if any.public TcpEventProxy(InetSocketAddress address)
Constructor for TcpEventProxy.
address
- a InetSocketAddress
object.public TcpEventProxy(InetSocketAddress address, int timeout)
Constructor for TcpEventProxy.
address
- a InetSocketAddress
object.timeout
- a int.public void send(Event event) throws EventProxyException
send
in interface EventProxy
event
- the event to be sent outUndeclaredThrowableException
- thrown if the send fails for any reasonEventProxyException
- thrown if the send fails for any reasonpublic void send(Log eventLog) throws EventProxyException
send
in interface EventProxy
eventLog
- the events to be sent outUndeclaredThrowableException
- thrown if the send fails for any reasonEventProxyException
- if any.Copyright © 2015. All rights reserved.