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

com.redis.spring.batch.reader.KeyspaceNotification Maven / Gradle / Ivy

There is a newer version: 4.0.7
Show newest version
package com.redis.spring.batch.reader;

public class KeyspaceNotification {

    private String key;

    private KeyEvent event;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public KeyEvent getEvent() {
        return event;
    }

    public void setEvent(KeyEvent event) {
        this.event = event;
    }

    @Override
    public int hashCode() {
        return key.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        if (!(obj instanceof KeyspaceNotification)) {
            return false;
        }
        KeyspaceNotification that = (KeyspaceNotification) obj;
        return key.equals(that.key);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy