Interface InstantMessagingServerManager
-
- All Known Implementing Classes:
InstantMessagingServerManagerImpl
public interface InstantMessagingServerManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull Collection<InstantMessagingServerDefinition>getAllInstantMessagingServers()Returns allInstantMessagingServerDefinitionobjects@Nullable InstantMessagingServerDefinitiongetInstantMessagingServer(long instantMessagingServerId)Returns theInstantMessagingServerDefinitionthat matches the passed idvoidremoveInstantMessagingServer(long instantMessagingServerId)Removes theInstantMessagingServerDefinitionwith the matching idvoidsaveInstantMessagingServer(InstantMessagingServerDefinition instantMessagingServer)Stores theInstantMessagingServerDefinition.
-
-
-
Method Detail
-
getAllInstantMessagingServers
@NotNull @NotNull Collection<InstantMessagingServerDefinition> getAllInstantMessagingServers()
Returns allInstantMessagingServerDefinitionobjects- Returns:
- An unmodifiable collection of
InstantMessagingServerDefinitionobjects,Collections.EMPTY_LISTif none exists.
-
saveInstantMessagingServer
void saveInstantMessagingServer(InstantMessagingServerDefinition instantMessagingServer)
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
-
-