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

com.tangosol.net.events.partition.Event Maven / Gradle / Ivy

There is a newer version: 24.09
Show newest version
/*
 * Copyright (c) 2000, 2020, Oracle and/or its affiliates.
 *
 * Licensed under the Universal Permissive License v 1.0 as shown at
 * http://oss.oracle.com/licenses/upl.
 */
package com.tangosol.net.events.partition;

import com.tangosol.net.PartitionedService;

/**
 * A PartitionedServiceEvent captures information concerning an operation on
 * a PartitionedService. Sub interfaces provide more context on the event.
 *
 * @since Coherence 12.1.2
 *
 * @param  the type of event
 */
public interface Event>
        extends com.tangosol.net.events.Event
    {
    /**
     * Return the {@link PartitionedServiceDispatcher} this event was
     * raised by.
     *
     * @return the {@code PartitionedServiceDispatcher} this event was raised by
     */
    @Override public PartitionedServiceDispatcher getDispatcher();

    /**
     * Return the {@link PartitionedService} this event was raised from.
     *
     * @return the {@code PartitionedService} this event was raised from
     */
    default PartitionedService getService()
        {
        return getDispatcher().getService();
        }
    }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy