public class InitiatorConnection extends Object implements SessionConnection
Modifier and Type | Field and Description |
---|---|
static InitiatorConnectionListener |
NULL_INITIATOR_CONNECTION_LISTENER |
Constructor and Description |
---|
InitiatorConnection() |
Modifier and Type | Method and Description |
---|---|
void |
addAddress(InetSocketAddress address)
Adds address.
|
List<InetSocketAddress> |
getAddresses()
Returns list of addresses.
|
String |
getCustomLogonMessage()
Returns custom logon message.
|
String |
getCustomLogonMessageFieldDelimiter()
Returns custom logon message field delimiter.
|
String |
getCustomLogonMessageFile()
Returns custom logon message file.
|
Message |
getCustomLogonMessageObj()
Returns custom logon message.
|
int |
getHeartbeatInterval()
Returns heartbeat interval.
|
InitiatorConnectionListener |
getInitiatorConnectionListener()
Returns initiator connection listener.
|
boolean |
isSetResetSeqNumbers()
Returns whether flag to reset sequence numbers should be set in logon.
|
void |
logon(Session session)
Logons the session.
|
void |
setCustomLogonMessage(String customLogonMessage)
Sets custom logon message.
|
void |
setCustomLogonMessageFieldDelimiter(String customLogonMessageFieldDelimiter)
Sets custom logon message field delimiter.
|
void |
setCustomLogonMessageFile(String customLogonMessageFile)
Sets custom logon message file.
|
void |
setCustomLogonMessageObj(Message customLogonMessageObj)
Sets custom logon message.
|
void |
setHeartbeatInterval(int heartbeatInterval)
Sets heartbeat interval.
|
void |
setHeartbeatInterval(String heartbeatInterval)
Sets heartbeat interval.
|
void |
setInitiatorConnectionListener(InitiatorConnectionListener listener)
Sets initiator connection listener.
|
void |
setSetResetSeqNumbers(boolean setResetSeqNumbers)
Sets whether flag to reset sequence numbers should be set in logon.
|
void |
setSetResetSeqNumbers(String setResetSeqNumbers)
Sets whether flag to reset sequence numbers should be set in logon.
|
public static final InitiatorConnectionListener NULL_INITIATOR_CONNECTION_LISTENER
public boolean isSetResetSeqNumbers()
public void setSetResetSeqNumbers(boolean setResetSeqNumbers)
setResetSeqNumbers
- whether flag to reset sequence numbers should be set in logonpublic void setSetResetSeqNumbers(String setResetSeqNumbers)
setResetSeqNumbers
- whether flag to reset sequence numbers should be set in logon,
true
or false
public int getHeartbeatInterval()
public void setHeartbeatInterval(int heartbeatInterval)
heartbeatInterval
- heartbeat intervalpublic void setHeartbeatInterval(String heartbeatInterval)
heartbeatInterval
- heartbeat intervalpublic String getCustomLogonMessage()
public void setCustomLogonMessage(String customLogonMessage)
customLogonMessage
- custom logon messagepublic Message getCustomLogonMessageObj()
public void setCustomLogonMessageObj(Message customLogonMessageObj)
customLogonMessageObj
- custom logon messagepublic String getCustomLogonMessageFile()
public void setCustomLogonMessageFile(String customLogonMessageFile)
customLogonMessageFile
- custom logon message filepublic String getCustomLogonMessageFieldDelimiter()
public void setCustomLogonMessageFieldDelimiter(String customLogonMessageFieldDelimiter)
customLogonMessageFieldDelimiter
- custom logon message field delimiterpublic List<InetSocketAddress> getAddresses()
public void addAddress(InetSocketAddress address)
address
- connection addresspublic InitiatorConnectionListener getInitiatorConnectionListener()
public void setInitiatorConnectionListener(InitiatorConnectionListener listener)
listener
- initiator connection listener or NULL_INITIATOR_CONNECTION_LISTENER
value to reset
listener to defaultpublic void logon(Session session) throws Exception
logon
in interface SessionConnection
session
- sessionIOException
- if logon message reading failedException
Copyright © 2005–2024 Onix Solutions. All rights reserved.