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

com.github.edgar615.util.eventbus.EventFuture Maven / Gradle / Ivy

There is a newer version: 1.0.11
Show newest version
package com.github.edgar615.util.eventbus;

import com.github.edgar615.util.event.Event;

public interface EventFuture {

  Event event();

  boolean isComplete();

  EventFuture setCallback(Callback callback);

  void complete(T result);

  void fail(Throwable throwable);

  T result();

  Throwable cause();

  boolean succeeded();

  boolean failed();

  static  EventFuture future(Event event) {
    return new EventFutureImpl<>(event);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy