public class WorkManagerEvent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_JOIN
JOIN
|
static int |
TYPE_LEAVE
LEAVE
|
static int |
TYPE_UPDATE_LONG_RUNNING
UPDATE_LONG_RUNNING
|
static int |
TYPE_UPDATE_SHORT_RUNNING
UPDATE_SHORT_RUNNING
|
Constructor and Description |
---|
WorkManagerEvent(int type,
Address address)
Constructor
|
WorkManagerEvent(int type,
Address address,
long value)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
Address |
getAddress()
Get the address
|
int |
getType()
Get the type
|
long |
getValue()
Get the value
|
int |
hashCode() |
java.lang.String |
toString() |
public static final int TYPE_JOIN
public static final int TYPE_LEAVE
public static final int TYPE_UPDATE_SHORT_RUNNING
public static final int TYPE_UPDATE_LONG_RUNNING
public WorkManagerEvent(int type, Address address)
type
- The typeaddress
- The addresspublic WorkManagerEvent(int type, Address address, long value)
type
- The typeaddress
- The addressvalue
- The value for the typepublic int getType()
public Address getAddress()
public long getValue()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2013 IronJacamar (http://www.ironjacamar.org)