use of com.vmware.flowgate.common.model.redis.message.EventTarget in project flowgate by vmware.
the class EventMessageUtil method createEventMessage.
public static EventMessage createEventMessage(EventType type, String targetCommand, String message) {
EventUser targetUser = new EventUserImpl(targetCommand);
Set<EventUser> users = new HashSet<EventUser>();
users.add(targetUser);
EventTarget target = new EventTargetImpl(users);
EventMessage newMessage = new EventMessageImpl(type, null, null, target, new Date().getTime(), message);
return newMessage;
}
Aggregations