org.asteriskjava.pbx.asterisk.wrap.actions.AbstractManagerAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of asterisk-java Show documentation
Show all versions of asterisk-java Show documentation
The free Java library for Asterisk PBX integration.
package org.asteriskjava.pbx.asterisk.wrap.actions;
import java.util.concurrent.atomic.AtomicLong;
/**
* Automatically generates a globally unique action id (based on the systems mac
* address
*
* @author bsutton
*/
abstract public class AbstractManagerAction implements ManagerAction
{
private final static AtomicLong _nextActionId = new AtomicLong();
private final String _actionId = "" + _nextActionId.incrementAndGet();
public String getActionId()
{
return this._actionId;
}
}