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