ConnectionAsgmtType

Inheritance: java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum

public final class ConnectionAsgmtType extends System.Enum

Defines algorithm of connection allocation in multiple threads environment

Fields

FieldDescription
EnumSeparatorCharArray
UseDefaultEmail client uses implicitly only default connections for all operations from multiple threads.
UseMainEmail client uses main connection for all operations from multiple threads.
UseMainOrDefaultThis mode uses by default in email clients.

Methods

MethodDescription
Clone()
CloneTo(T arg0)
CloneTo(System.Enum arg0)
equals(Object arg0)
format(System.Type arg0, Object arg1, String arg2)
format(Class arg0, long arg1, String arg2)
getClass()
getName(System.Type arg0, Object arg1)
getName(Class arg0, long arg1)
getNames(System.Type arg0)
getNames(Class arg0)
getUnderlyingType(System.Type arg0)
getUnderlyingType(Class arg0)
getValue(Class arg0, String arg1)
getValues(System.Type arg0)
get_Caption()
get_Value()
hashCode()
isDefined(System.Type arg0, Object arg1)
isDefined(System.Type arg0, String arg1)
isDefined(System.Type arg0, long arg1)
isDefined(Class arg0, long arg1)
notify()
notifyAll()
parse(System.Type arg0, String arg1)
parse(System.Type arg0, String arg1, Boolean arg2)
parse(Class arg0, String arg1)
parse(Class arg0, String arg1, Boolean arg2)
register(System.Enum.AbstractEnum arg0)
toObject(System.Type arg0, Object arg1)
toString()
toString(Class arg0, long arg1)
wait()
wait(long arg0)
wait(long arg0, int arg1)

EnumSeparatorCharArray

public static final char[] EnumSeparatorCharArray

UseDefault

public static final int UseDefault

Email client uses implicitly only default connections for all operations from multiple threads. Main connection is not used in this mode. If default connection hasn’t been created for some thread (first invocation of email client method), email client creates default connection implicitly for thread before first operation is executed. User can’t create default connections for threads with CreateConnection method because they are created automatically. When default connection for thread is created, it’s used implicitly for all methods of email client which are invoked in this thread.read. User also can create independent connections not linked with threads (not default connections) with CreateConnection method. If user wants to use other connections (not main and not default) he has to pass this connection explicitly as parameter of a method which he wants to use. User can additionally create any number of connections. Default connection can be only one per thread. Please note default connections works correctly if user uses Thread objects for multitasking programming. If user uses ConnectionPool or uses Task objects for multitasking programming this mode may lead to wrong behaviour of a programm because of thread may be reused in this case. To avoid this problem user has to manually dispose default conection in the end of the code which executes in the thread.

UseMain

public static final int UseMain

Email client uses main connection for all operations from multiple threads. Main connection is connection which is created in the same time like email client. User cann’t create default connections. User can create independent connections not linked with threads (not default connections) with CreateConnection method. If user wants to use other connections (not main and not default) he has to pass this connection explicitly as parameter of a method which he wants to use. User can additionally create any number of connections.

UseMainOrDefault

public static final int UseMainOrDefault

This mode uses by default in email clients. Email client uses main connection for all operations from multiple threads if default connection hasn’t been created, or connection hasnt been passed as method parameter explicitly. Main connection is connection which is created in the same time like email client. User can create default connections for threads with CreateConnection method. If default connection for thread is created, it’s used implicitly for all methods of email client which are invoked in this thread. If default connection for thread is not created, main connection is used for all methods of email client which are invoked in this thread. User also can create independent connections not linked with threads (not default connections) with CreateConnection method. If user wants to use other connections (not main and not default) he has to pass this connection explicitly as parameter of a method which he wants to use. User can additionally create any number of connections. Default connection can be only one per thread. Please note default connections works correctly if user uses Thread objects for multitasking programming. If user uses ConnectionPool or uses Task objects for multitasking programming this mode may lead to wrong behaviour of a programm because of thread may be reused in this case. To avoid this problem user has to manually dispose default conection (if he uses it) in the end of the code which executes in the thread.

Clone()

public System.Enum Clone()

Returns: com.aspose.ms.System.Enum

CloneTo(T arg0)

public abstract void CloneTo(T arg0)

Parameters:

ParameterTypeDescription
arg0T

CloneTo(System.Enum arg0)

public void CloneTo(System.Enum arg0)

Parameters:

ParameterTypeDescription
arg0com.aspose.ms.System.Enum

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

format(System.Type arg0, Object arg1, String arg2)

public static String format(System.Type arg0, Object arg1, String arg2)

Parameters:

ParameterTypeDescription
arg0com.aspose.ms.System.Type
arg1java.lang.Object
arg2java.lang.String

Returns: java.lang.String

format(Class arg0, long arg1, String arg2)

public static String format(Class<?> arg0, long arg1, String arg2)

Parameters:

ParameterTypeDescription
arg0java.lang.Class
arg1long
arg2java.lang.String

Returns: java.lang.String

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getName(System.Type arg0, Object arg1)

public static String getName(System.Type arg0, Object arg1)

Parameters:

ParameterTypeDescription
arg0com.aspose.ms.System.Type
arg1java.lang.Object

Returns: java.lang.String

getName(Class arg0, long arg1)

public static String getName(Class<?> arg0, long arg1)

Parameters:

ParameterTypeDescription
arg0java.lang.Class
arg1long

Returns: java.lang.String

getNames(System.Type arg0)

public static String[] getNames(System.Type arg0)

Parameters:

ParameterTypeDescription
arg0com.aspose.ms.System.Type

Returns: java.lang.String[]

getNames(Class arg0)

public static Collection<String> getNames(Class<?> arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Class

Returns: java.util.Collection<java.lang.String>

getUnderlyingType(System.Type arg0)

public static System.Type getUnderlyingType(System.Type arg0)

Parameters:

ParameterTypeDescription
arg0com.aspose.ms.System.Type

Returns: com.aspose.ms.System.Type

getUnderlyingType(Class arg0)

public static Class<? extends Number> getUnderlyingType(Class<?> arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Class

Returns: java.lang.Class<? extends java.lang.Number>

getValue(Class arg0, String arg1)

public static long getValue(Class<?> arg0, String arg1)

Parameters:

ParameterTypeDescription
arg0java.lang.Class
arg1java.lang.String

Returns: long

getValues(System.Type arg0)

public static System.Array getValues(System.Type arg0)

Parameters:

ParameterTypeDescription
arg0com.aspose.ms.System.Type

Returns: com.aspose.ms.System.Array

get_Caption()

public String get_Caption()

Returns: java.lang.String

get_Value()

public long get_Value()

Returns: long

hashCode()

public native int hashCode()

Returns: int

isDefined(System.Type arg0, Object arg1)

public static boolean isDefined(System.Type arg0, Object arg1)

Parameters:

ParameterTypeDescription
arg0com.aspose.ms.System.Type
arg1java.lang.Object

Returns: boolean

isDefined(System.Type arg0, String arg1)

public static boolean isDefined(System.Type arg0, String arg1)

Parameters:

ParameterTypeDescription
arg0com.aspose.ms.System.Type
arg1java.lang.String

Returns: boolean

isDefined(System.Type arg0, long arg1)

public static boolean isDefined(System.Type arg0, long arg1)

Parameters:

ParameterTypeDescription
arg0com.aspose.ms.System.Type
arg1long

Returns: boolean

isDefined(Class arg0, long arg1)

public static boolean isDefined(Class<?> arg0, long arg1)

Parameters:

ParameterTypeDescription
arg0java.lang.Class
arg1long

Returns: boolean

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

parse(System.Type arg0, String arg1)

public static long parse(System.Type arg0, String arg1)

Parameters:

ParameterTypeDescription
arg0com.aspose.ms.System.Type
arg1java.lang.String

Returns: long

parse(System.Type arg0, String arg1, Boolean arg2)

public static long parse(System.Type arg0, String arg1, Boolean arg2)

Parameters:

ParameterTypeDescription
arg0com.aspose.ms.System.Type
arg1java.lang.String
arg2java.lang.Boolean

Returns: long

parse(Class arg0, String arg1)

public static long parse(Class<?> arg0, String arg1)

Parameters:

ParameterTypeDescription
arg0java.lang.Class
arg1java.lang.String

Returns: long

parse(Class arg0, String arg1, Boolean arg2)

public static long parse(Class<?> arg0, String arg1, Boolean arg2)

Parameters:

ParameterTypeDescription
arg0java.lang.Class
arg1java.lang.String
arg2java.lang.Boolean

Returns: long

register(System.Enum.AbstractEnum arg0)

public static void register(System.Enum.AbstractEnum arg0)

Parameters:

ParameterTypeDescription
arg0com.aspose.ms.System.Enum.AbstractEnum

toObject(System.Type arg0, Object arg1)

public static Object toObject(System.Type arg0, Object arg1)

Parameters:

ParameterTypeDescription
arg0com.aspose.ms.System.Type
arg1java.lang.Object

Returns: java.lang.Object

toString()

public String toString()

Returns: java.lang.String

toString(Class arg0, long arg1)

public static String toString(Class<?> arg0, long arg1)

Parameters:

ParameterTypeDescription
arg0java.lang.Class
arg1long

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int