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

com.flash3388.flashlib.net.messaging.MessageMetadata Maven / Gradle / Ivy

The newest version!
package com.flash3388.flashlib.net.messaging;

import com.flash3388.flashlib.time.Time;
import com.flash3388.flashlib.util.unique.InstanceId;

/**
 * Meta-data for a message received.
 *
 * @since FlashLib 3.2.0
 */
public interface MessageMetadata {

    /**
     * Gets the id of the sender in the form on {@link InstanceId}
     *
     * @return sender
     */
    InstanceId getSender();

    /**
     * Gets the time at which the message was received.
     *
     * @return timestamp
     */
    Time getTimestamp();

    /**
     * Gets the type of the message.
     *
     * @return type
     */
    MessageType getType();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy