public class OdiOnConnectConfig
extends java.lang.Object
| Constructor and Description |
|---|
OdiOnConnectConfig(java.lang.String pCmd,
LogLevel pLogLevel,
java.util.Set pTransactionChannels,
boolean pShouldBePerformedOutsideTransactionChannels,
boolean pShouldCommitCmd,
boolean pShouldIgnoreErrors)
Create a new OdiOnConnectConfig
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCommand()
Obtains the command to be performed during onConnect
|
LogLevel |
getLogLevel()
Obtains log level to be used when executing onConnect command.
|
java.util.Set |
getTransactionChannels()
Obtains the transaction channels for which the onConnect command should be performed.
|
boolean |
isShouldBePerformedOutsideTransactionChannels()
Returns whether the on-connect command should also be performed outside transaction channels (i.e.
|
boolean |
isShouldCommitCommand()
Returns whether the on-connect command should be committed, or not.
|
boolean |
isShouldIgnoreErrors()
Return whether the on-connect command's errors should be ignored, or not.
|
public OdiOnConnectConfig(java.lang.String pCmd,
LogLevel pLogLevel,
java.util.Set pTransactionChannels,
boolean pShouldBePerformedOutsideTransactionChannels,
boolean pShouldCommitCmd,
boolean pShouldIgnoreErrors)
throws java.lang.IllegalArgumentException
pCmd - - the onConnect command, can be nullpLogLevel - - the log level to be applied when executing the command, LogLevel.LEVEL_3 will be used in case pLogLevel is nullpTransactionChannels - - transaction channels to apply the commandpShouldBePerformedOutsideTransactionChannels - - whether the command can be performed outside session executionpShouldCommitCmd - - whether the command should be committedpShouldIgnoreErrors - - whether errors should be ignoredjava.lang.IllegalArgumentException - - in case of an illegal null parameter valuepublic LogLevel getLogLevel()
public java.lang.String getCommand()
public boolean isShouldCommitCommand()
public boolean isShouldIgnoreErrors()
public java.util.Set getTransactionChannels()
public boolean isShouldBePerformedOutsideTransactionChannels()