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

arez.spy.TaskStartEvent Maven / Gradle / Ivy

There is a newer version: 0.213
Show newest version
package arez.spy;

import java.util.Map;
import java.util.Objects;
import javax.annotation.Nonnull;

/**
 * Notification that Task is starting.
 */
public final class TaskStartEvent
  implements SerializableEvent
{
  @Nonnull
  private final TaskInfo _task;

  public TaskStartEvent( @Nonnull final TaskInfo task )
  {
    _task = Objects.requireNonNull( task );
  }

  @Nonnull
  public TaskInfo getTask()
  {
    return _task;
  }

  @Override
  public void toMap( @Nonnull final Map map )
  {
    map.put( "type", "TaskStart" );
    map.put( "name", getTask().getName() );
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy