Package com.helger.phase4.model.mpc
Interface IMPCManager
- All Known Implementing Classes:
MPCManager,MPCManagerInMemory
public interface IMPCManager
Interface for an MPC (Message Partition Channel) manager
- Since:
- 0.9.6
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsWithID(String sID) Check if an MPC with the specified ID is contained.voidCreate a new MPC.com.helger.commons.state.EChangeDelete the MPC with the provided ID.getMPCOfID(String sID) Get the MPC with the specified ID.default IMPCGet the MPC with the specified ID, or the default MPC.com.helger.commons.state.EChangemarkMPCDeleted(String sMPCID) Mark the MPC with the provided ID as deleted.com.helger.commons.state.EChangeUpdate an existing MPC
-
Method Details
-
createMPC
Create a new MPC.- Parameters:
aMPC- The MPC to be added. May not benull.
-
updateMPC
Update an existing MPC- Parameters:
aMPC- The MPC to be updated. May not benull.- Returns:
EChange.CHANGEDif something changed,EChange.UNCHANGEDotherwise.
-
markMPCDeleted
Mark the MPC with the provided ID as deleted.- Parameters:
sMPCID- The ID of the MPC to be marked as deleted. May benull.- Returns:
EChange.CHANGEDif marking as deleted succeeded,EChange.UNCHANGEDotherwise.
-
deleteMPC
Delete the MPC with the provided ID.- Parameters:
sMPCID- The ID of the MPC to be deleted. May benull.- Returns:
EChange.CHANGEDif deleting succeeded,EChange.UNCHANGEDotherwise.
-
getMPCOfID
Get the MPC with the specified ID.- Parameters:
sID- The ID to search. May benull.- Returns:
nullif no such MPC exists, the MPC otherwise.
-
containsWithID
Check if an MPC with the specified ID is contained.- Parameters:
sID- The ID to search. May benull.- Returns:
trueif such an MPC is contained,falseotherwise.
-
getMPCOrDefaultOfID
Get the MPC with the specified ID, or the default MPC.- Parameters:
sID- The ID to search. If it isnullor empty, the default MPC will be used.- Returns:
nullif no such MPC exists, the MPC otherwise.- See Also:
-