Interface InstantMessagingServerManager
- All Known Implementing Classes:
InstantMessagingServerManagerImpl
public interface InstantMessagingServerManager
-
Method Summary
Modifier and TypeMethodDescription@NotNull Collection<InstantMessagingServerDefinition>Returns allInstantMessagingServerDefinitionobjects@Nullable InstantMessagingServerDefinitiongetInstantMessagingServer(long instantMessagingServerId) Returns theInstantMessagingServerDefinitionthat matches the passed idvoidremoveInstantMessagingServer(long instantMessagingServerId) Removes theInstantMessagingServerDefinitionwith the matching idvoidsaveInstantMessagingServer(InstantMessagingServerDefinition instantMessagingServer) Stores theInstantMessagingServerDefinition.
-
Method Details
-
getAllInstantMessagingServers
Returns allInstantMessagingServerDefinitionobjects- Returns:
- An unmodifiable collection of
InstantMessagingServerDefinitionobjects,Collections.EMPTY_LISTif none exists.
-
saveInstantMessagingServer
Stores theInstantMessagingServerDefinition.- Parameters:
instantMessagingServer- - Must not be null
-
getInstantMessagingServer
@Nullable @Nullable InstantMessagingServerDefinition getInstantMessagingServer(long instantMessagingServerId) Returns theInstantMessagingServerDefinitionthat matches the passed id- Parameters:
instantMessagingServerId-- Returns:
- Matching
InstantMessagingServerDefinitionobject. Null if the server does not exist
-
removeInstantMessagingServer
void removeInstantMessagingServer(long instantMessagingServerId) Removes theInstantMessagingServerDefinitionwith the matching id- Parameters:
instantMessagingServerId-- Throws:
IllegalArgumentException- - is thrown if server does not exist
-