Annotation Interface DispatchScoped


@Documented @Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface DispatchScoped
Marks an event or borrowed view whose lifetime ends with packet dispatch.

Access is permitted only in the current listener or the continuation requested through PacketEvent.sync(devs.beer.nativepackets.api.SynchronizedPacketListener), PacketEvent.syncAt(java.lang.Object, devs.beer.nativepackets.api.SynchronizedPacketListener), or PacketEvent.syncGlobal(devs.beer.nativepackets.api.PacketListener<devs.beer.nativepackets.api.PacketEvent>). A continuation extends dispatch; it does not permit concurrent access from unrelated tasks. Replacement or failure rollback can invalidate a view earlier. Reacquire views from the supplied event.