In this example, we use the LimitArbitrator , but you can specify the name of any arbitrator that you have created. The first step is to direct the server to use a different arbitrator. The default arbitrator is the CentralArbitrator , which allows any action to be performed. Instead, you need to use the LimitArbitrator or an arbitrator of your own design. The second step is to request a key to a lock.
Locks are a limitation on the types of actions that can be performed.
To get a lock, you determine what type of limitation you will need, and request the arbitrator give you permission to do these types of actions. The arbitrator returns the key. Then you need to ask the arbitrator for a key. The tricky part then is getting the arbitrator. The arbitrator can be retrieved from the frame.