All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.asteriskjava.pbx.asterisk.wrap.actions.AbstractManagerAction Maven / Gradle / Ivy

There is a newer version: 3.40.1
Show newest version
package org.asteriskjava.pbx.asterisk.wrap.actions;

/**
 * Automatically generates a globally unique action id (based on the systems mac
 * address
 * 
 * @author bsutton
 * 
 */
abstract public class AbstractManagerAction implements ManagerAction
{

	private static long _nextActionId = 1;

	private String _actionId;

	AbstractManagerAction()
	{
		this._actionId = generateActionId();
	}

	public String getActionId()
	{
		return this._actionId;
	}

	synchronized public String generateActionId()
	{

		return "" + _nextActionId++;
	}

	protected void setActionId(String actionId)
	{
		this._actionId = actionId;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy