public static enum PushEvent.EventType extends java.lang.Enum<PushEvent.EventType>
PushEvent
.Enum Constant and Description |
---|
CLOSE
An event that indicates that the stream has terminated normally
|
DATA
A data event forming part of the stream
|
ERROR
An error event that indicates streaming has failed and that no more
events will arrive
|
Modifier and Type | Method and Description |
---|---|
static PushEvent.EventType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PushEvent.EventType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PushEvent.EventType DATA
public static final PushEvent.EventType ERROR
public static final PushEvent.EventType CLOSE
public static PushEvent.EventType[] values()
for (PushEvent.EventType c : PushEvent.EventType.values()) System.out.println(c);
public static PushEvent.EventType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0