|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<SFSRoomRemoveMode>
com.smartfoxserver.v2.entities.SFSRoomRemoveMode
public enum SFSRoomRemoveMode
The Remove Mode tells the RoomManager how to auto-remove dynamically created Rooms. Four different modes are provided.
| Enum Constant Summary | |
|---|---|
DEFAULT
The default mode works in two different ways depending on the type of Room: Regular: the room is removed when the Room is empty and its creator is not connected anymore Game: the room is removed when the Room is empty |
|
NEVER_REMOVE
The Room is never removed (use with caution) |
|
WHEN_EMPTY
The Room is auto-removed when the last user leaves it |
|
WHEN_EMPTY_AND_CREATOR_IS_GONE
The Room is auto-removed when the Room is empty and its creator is not connected anymore |
|
| Method Summary | |
|---|---|
static SFSRoomRemoveMode |
fromString(java.lang.String id)
|
static SFSRoomRemoveMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static SFSRoomRemoveMode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final SFSRoomRemoveMode DEFAULT
public static final SFSRoomRemoveMode WHEN_EMPTY
public static final SFSRoomRemoveMode WHEN_EMPTY_AND_CREATOR_IS_GONE
public static final SFSRoomRemoveMode NEVER_REMOVE
| Method Detail |
|---|
public static SFSRoomRemoveMode[] values()
for (SFSRoomRemoveMode c : SFSRoomRemoveMode.values()) System.out.println(c);
public static SFSRoomRemoveMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic static SFSRoomRemoveMode fromString(java.lang.String id)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||