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

org.apereo.cas.ticket.registry.JmsTicketRegistryPublisher Maven / Gradle / Ivy

There is a newer version: 6.6.15.2
Show newest version
package org.apereo.cas.ticket.registry;

import org.apereo.cas.ticket.registry.queue.BaseMessageQueueCommand;

/**
 * This is {@link JmsTicketRegistryPublisher}.
 *
 * @author Misagh Moayyed
 * @since 6.1.0
 */
@FunctionalInterface
public interface JmsTicketRegistryPublisher {
    /**
     * Queue destination name.
     */
    String QUEUE_DESTINATION = "CasJmsTicketRegistry";

    /**
     * No Op jms ticket registry publisher.
     *
     * @return the jms ticket registry publisher
     */
    static JmsTicketRegistryPublisher noOp() {
        return cmd -> {
        };
    }

    /**
     * Publish message to queue.
     *
     * @param cmd the cmd
     */
    void publishMessageToQueue(BaseMessageQueueCommand cmd);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy