public final class TcpEventProxy extends Object implements EventProxy
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PORT
Deprecated.
Constant
DEFAULT_PORT=5817 |
static int |
DEFAULT_TIMEOUT
Deprecated.
Constant
DEFAULT_TIMEOUT=2000 |
Constructor and Description |
---|
TcpEventProxy()
Deprecated.
Constructor for TcpEventProxy.
|
TcpEventProxy(InetSocketAddress address)
Deprecated.
Constructor for TcpEventProxy.
|
TcpEventProxy(InetSocketAddress address,
int timeout)
Deprecated.
Constructor for TcpEventProxy.
|
Modifier and Type | Method and Description |
---|---|
void |
send(Event event)
Deprecated.
This method is called to send the event out
|
void |
send(Log eventLog)
Deprecated.
This method is called to send an event log containing multiple events
out.
|
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 © 2021. All rights reserved.