upsert and delete events
This commit is contained in:
@@ -0,0 +1,16 @@
|
|||||||
|
package com.muwire.core.search
|
||||||
|
|
||||||
|
import com.muwire.core.Event
|
||||||
|
|
||||||
|
import net.i2p.data.Base32
|
||||||
|
import net.i2p.data.Destination
|
||||||
|
|
||||||
|
class DeleteEvent extends Event {
|
||||||
|
byte [] infoHash
|
||||||
|
Destination leaf
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
"DeleteEvent ${super.toString()} infoHash:${Base32.encode(infoHash)} leaf:${leaf.toBase32()}"
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,18 @@
|
|||||||
|
package com.muwire.core.search
|
||||||
|
|
||||||
|
import com.muwire.core.Event
|
||||||
|
|
||||||
|
import net.i2p.data.Base32
|
||||||
|
import net.i2p.data.Destination
|
||||||
|
|
||||||
|
class UpsertEvent extends Event {
|
||||||
|
|
||||||
|
List<String> names
|
||||||
|
byte [] infoHash
|
||||||
|
Destination leaf
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
"UpsertEvent ${super.toString()} names:$names infoHash:${Base32.encode(infoHash)} leaf:${leaf.toBase32()}"
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user