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 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 Detail
-
getAllInstantMessagingServers
@NotNull @NotNull Collection<InstantMessagingServerDefinition> getAllInstantMessagingServers()
Returns allInstantMessagingServerDefinition
objects- Returns:
- An unmodifiable collection of
InstantMessagingServerDefinition
objects,Collections.EMPTY_LIST
if none exists.
-
saveInstantMessagingServer
void saveInstantMessagingServer(InstantMessagingServerDefinition instantMessagingServer)
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
-
-